package com.qts.crm.dto;


public class ResultSupport<T> {

    /**
     * 备注
     */
    private String msg = "";

    /**
     * 返回编号
     */
    private Integer code = 0;

    /**
     * 是否成功
     */
    private boolean success = false;

    /**
     * 装载对象
     */
    private T data;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultSupport{" +
                "msg='" + msg + '\'' +
                ", code=" + code +
                ", success=" + success +
                ", data=" + data +
                '}';
    }
}
